//
//  Reachability+Extension.m
//  MyShoppingApp
//
//  Created by ibokan on 16/1/11.
//  Copyright © 2016年 ibokan. All rights reserved.
//

#import "Reachability+Extension.h"

@implementation Reachability (Extension)
//检测是否是WIFI
+(BOOL)isEnableWifi
{
    return ([[Reachability reachabilityForLocalWiFi] currentReachabilityStatus] != NotReachable);
}

//检测是否是移动数据
+(BOOL)isEnable3G
{
    return ([[Reachability reachabilityForInternetConnection] currentReachabilityStatus] != NotReachable);
}
@end
